<!-- 商家提现申请表单弹窗 -->
<form id="businesswithdraw-form" lay-filter="businesswithdraw-form" class="layui-form model-form" style="overflow:auto; height:500px;width:90%;">
    <input name="id" type="hidden"/>
     <input name="businessId" type="hidden"/>
     <div class="layui-form-item">
        <label class="layui-form-label">提现申请编号</label>
        <div class="layui-input-block">
            <input name="withdrawCode" placeholder="提现申请编号" type="text" class="layui-input"   readOnly />
        </div>
    </div>
 		 
 		    <div class="layui-form-item">
        <label class="layui-form-label">审核人</label>
        <div class="layui-input-block">
            <input name="checkUserName" placeholder="审核人" type="text" class="layui-input"    readOnly
               />
        </div>
    </div>
 		    <div class="layui-form-item">
        <label class="layui-form-label">转账人</label>
        <div class="layui-input-block">
            <input name="transferUserName" placeholder="转账人" type="text" class="layui-input"    readOnly
                   lay-verify="required" required/>
        </div>
    </div>
 		    <div class="layui-form-item">
        <label class="layui-form-label">提现金额</label>
        <div class="layui-input-block">
            <input name="sum" placeholder="提现金额" type="text" class="layui-input"  readOnly/>
        </div>
    </div>
 		    <div class="layui-form-item">
        <label class="layui-form-label">手续费</label>
        <div class="layui-input-block">
            <input name="poundage" placeholder="手续费" type="text" class="layui-input"  readOnly />
        </div>
    </div>
 		    <div class="layui-form-item">
        <label class="layui-form-label">实际到账</label>
        <div class="layui-input-block">
            <input name="actualSum" placeholder="实际到账" type="text" class="layui-input"   readOnly  />
        </div>
    </div>
 		 
 		    <div class="layui-form-item">
        <label class="layui-form-label">审核时间</label>
        <div class="layui-input-block">
            <input name="checkTime" placeholder="审核时间" type="text" class="layui-input"     readOnly />
        </div>
    </div>
 		    <div class="layui-form-item">
        <label class="layui-form-label">申请时间</label>
        <div class="layui-input-block">
            <input name="createTime" placeholder="申请时间" type="text" class="layui-input"    readOnly />
        </div>
    </div>
 		    <div class="layui-form-item">
        <label class="layui-form-label">转账时间</label>
        <div class="layui-input-block">
            <input name="transferTime" placeholder="转账时间" type="text" class="layui-input"      readOnly />
        </div>
    </div>
 	 
 		    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input name="comment" placeholder="请输入备注" type="text" class="layui-input"   />
        </div>
    </div>
     <div class="layui-form-item model-form-footer">
        <button class="layui-btn layui-btn-primary" ew-event="closeDialog" type="button">取消</button>
        <button class="layui-btn" lay-filter="user-form-submit" lay-submit>保存</button>
    </div>
</form>

<script>
    layui.use(['layer', 'admin', 'form', 'formSelects'], function () {
        var layer = layui.layer;
        var admin = layui.admin;
        var form = layui.form;
        var formSelects = layui.formSelects;
 
        var businesswithdraw = admin.getTempData('t_businesswithdraw');
           if (businesswithdraw.method=="update"){
        	form.val('businesswithdraw-form', businesswithdraw);
            form.render();
        }
        // 表单提交事件
        form.on('submit(user-form-submit)', function (data) {
             layer.load(2);
            
            admin.req('business/businesswithdraw/'+businesswithdraw.method, JSON.stringify(data.field), function (data) {
                layer.closeAll('loading');
                if (data.code == 0) {
                    layer.msg(data.msg, {icon: 1, time: 500});
                    admin.finishPopupCenter();
                } else {
                    layer.msg(data.msg, {icon: 2, time: 500});
                }
            }, "post");  
            return false;
        });
    });
</script>
